package com.ghsc.ghxc.jsb.ui.live.view.widget

import android.content.Context
import android.widget.TextView
import com.lxj.xpopup.core.CenterPopupView
import com.ghsc.ghxc.jsb.R

/**
 * 项目：CutePair
 * 包名：com.cn.cutepair.ui.dynamic.view
 * 类名：UserInfoOtherPartyViiew
 * 创建时间：2022/7/21 20:28
 * 创建人 @author： xiaolin
 * 描述 ：Todo...提示弹窗
 */
class TipsSubPopViiew(context: Context,text:String,btnSub:()->Unit) : CenterPopupView(context) {
    private var btnSub: () -> Unit = btnSub
    override fun getImplLayoutId() = R.layout.pw_tips_sub

    var text=text
    var textTv:TextView ?=null
    override fun onCreate() {
        super.onCreate()
        textTv=findViewById(R.id.text)
        textTv!!.text=text
        findViewById<TextView>(R.id.tvBtnNext).setOnClickListener {
            btnSub.invoke()
            dismiss()
        }



    }
}